package com.refuel.domain;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;

/**
 * @author zhanghao
 * @description 商品定义
 * @date 2024/5/10 09:35
 **/
@Schema(description = "商品定义")
public class Goods {
    /**
     * 商品ID
     */
    @Schema(description = "商品ID", example = "123456")
    private String id;

    /**
     * 商品名称
     */
    @Schema(description = "商品名称", example = "油膜清洁剂")
    private String name;

    /**
     * 商品标题
     */
    @Schema(description = "商品标题", example = "挡风玻璃车窗后视镜玻璃水去污水清洁剂")
    private String title;

    /**
     * 商品描述
     */
    @Schema(description = "商品描述", example = "加油描述")
    private String description;

    /**
     * 商品描述
     */
    @Schema(description = "商品图片", example = "https://img.refuel.com/123456.jpg")
    private String imgLink;

    /**
     * 商品价格
     */
    @Schema(description = "商品价格", example = "201.00")
    private Double price;

    /**
     * 商品库存
     */
    @Schema(description = "商品库存", example = "200")
    private Integer stock;

    /**
     * 商品详情
     */
    @Schema(description = "商品详情")
    private List<GoodsItem> itemList;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImgLink() {
        return imgLink;
    }

    public void setImgLink(String imgLink) {
        this.imgLink = imgLink;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public List<GoodsItem> getItemList() {
        return itemList;
    }

    public void setItemList(List<GoodsItem> itemList) {
        this.itemList = itemList;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }
}
